package com.work.dto.transport;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 配工搜索DTO
 *
 * @author ：dujianyu
 * @since ：Created in 2024/5/14 10:47
 */
@Data
public class WorkArrangeSearchDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "配工ID")
    private Long arrangeId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "船ID")
    private Long transportShipId;

    /** 理货日期 */
    @JsonSerialize(using = ToStringSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "日期",notes = "")
    private LocalDate planDate ;

    /** 时间段（班组） */
    @ApiModelProperty(name = "时间段（班组）",notes = "")
    private String timeSpace ;

    /** LOADER */
    @ApiModelProperty(name = "LOADER",notes = "")
    private String loaderType ;

}
